<?php

require_once BASE_PATH . 'application/models/itemdao' . EXT;

class cartoonDAO extends itemDAO {

    function __construct() {

        // Call the Model constructor
        parent::__construct();
    }

    function _defaultSQL() {
        parent::_defaultSQL(0);
        $this->db->where(array('fulltext' => '', 'video' => '', 'audio' => '', 'gallery' => ''));
    }

    function finAllCartoons() {
        $this->db->where_in('catid', 42);
        $query = $this->db->get('k2_items');
        return $result = $query->result();
    }

}

?>